<?php
/**
*File Name:MovieModel.class.php
*Date:2016年7月14日下午8:30:57
*Copyright  (c)2016,783188184@qq.com All Rights Reserved
*____________________________________________________________________________________________________
*/

namespace Home\Model;
use Think\Model;
class MovieModel extends Model {
	//查询movie表中的数据
	
	public function selectdata($number = 1,$map = false,$field = false){
		$model = $this->where($map)->field($field);
		if($number == 1){
			$res = $model->find();
		}else{
			$res = $model->limit($number)->select();
			
		}
		$res = returninfo($res);//将结果进行了处理
		return $res;
	}
}